<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="demo/三段/jquery.js"></script>
  </head>
  <body></body>
  <script>
    //    $group->title = $request->title;
    // $group->type = $request->type;
    // $group->detail = $request->detail;
    // $group->scale = $request->scale;
    // $group->status = $request->status;
    // $group->limit_day = $request->limit_day;
    $(function () {
      var data = {
        id: 99,
        title: '11666超划算拼团人越多越便宜！速抱团！',
        type: '1',
        price: 128.99,
        goods_id: 1,
        detail: `Now I'm shaking, drinking all this coffee
我微微摇晃着，喝着咖啡度过时光
These last few weeks have been exhausting
这几周我精疲力尽`,
        scale: [
          {
            num: 10,
            agent_money: 5,
            group_leader: 5,
            teams_goods_num: 1,
          },
          {
            num: 20,
            agent_money: 5,
            group_leader: 5,
            teams_goods_num: 1,
          },
          {
            num: 30,
            agent_money: 5,
            group_leader: 5,
            teams_goods_num: 1,
          },
        ],
        status: '1',
        limit_day: '',
      }

      $.ajax({
        url: 'https://api.bingxizg.com/api/group',
        // url: 'https://api.bingxizg.com/api/group/update',
        method: 'POST',

        data: data,
        crossDomain: true,
      })
        .done(function (response) {})
        .fail(function (jqXHR) {})
    })
  </script>
</html>
